#include "main.h"
#include "bsp_at24cxx.h"
#include "bsp_sdram.h"
#include "lvgl.h"
#include "lv_port_disp.h"
#include "lv_demo_stress.h"
#include "lv_demo_music.h"
#include "lv_port_indev.h"
#include "bsp_lcd.h"
#include "bsp_touch.h"
#include "SEGGER_RTT.h"

void SysTick_Handler(void){
	Core_Run_Time_Update();
	lv_tick_inc(1);
}

int main(void){
	bsp_system_clock_config();
	SEGGER_RTT_Init();
	bsp_at24c02_init();
	bsp_sdram_config();
	lv_init();
	lv_port_disp_init();
	lv_port_indev_init();
//	lv_demo_stress();
//	lv_demo_music();
	
	while(1){
		lv_task_handler();
//		bsp_touch_scan();
//		delay_ms(100);
	}
	return 0;
}
